package com.block.db.mapper;

import com.block.db.entity.MemberBaseInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 
 * @since 2023-08-05
 */
public interface MemberBaseInfoMapper extends BaseMapper<MemberBaseInfo> {

    MemberBaseInfo getMemberInfoByUidLock(Long uid);

    MemberBaseInfo getBaseUserInfoByPhoneLock(String mobile);

    MemberBaseInfo getBaseUserInfoByMobileMd5Lock(String mobileMd5);

    List<MemberBaseInfo> getUnfinishedUsersWithinMinutes(String now);

    List<MemberBaseInfo> getBaseUserInfoByCreateTime(LocalDateTime startTime, LocalDateTime endTime);
}
